package com.collect.tanzania.zhiScene.zhiCollection.zhiGroup.zhiPerformance.zhiRealTime;

import com.collect.tanzania.zhiUtils.ToastUtil;

public class ZHIPerformanceGroupRealTimeReduce {

    public static long mLastCheckGroupRealTimeTimeMillis = 0L;

    public static boolean checkCanOpenGroupRealTimeDetail() {
        long curTimeMillis = System.currentTimeMillis();
        if ((curTimeMillis - mLastCheckGroupRealTimeTimeMillis) >= 5000) {
            mLastCheckGroupRealTimeTimeMillis = curTimeMillis;
            return true;
        }
        ToastUtil.s("Your query is too frequent, please try again in 5 seconds.");
        return false;
    }

}
